package com.trainingcloud.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 资源管理表
 * </p>
 *
 * @author 纸鹤
 * @since 2022-10-11
 */
@ApiModel(value = "Resource对象", description = "资源管理表")
public class Resource implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("资源id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("资源名称")
    private String name;

    @ApiModelProperty("资源类型 0-文件 1-链接")
    private Integer resourceType;

    @ApiModelProperty("关联班级id")
    private Integer relationClassId;

    @ApiModelProperty("关联教师id")
    private Integer relationTeacherId;

    @ApiModelProperty("资源链接")
    private String resourceUrl;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("是否为草稿 0-否 1-是")
    private Integer isDraft;

    @ApiModelProperty("逻辑删除: 0=未删除 1=删除")
    private Integer isDeleted;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getResourceType() {
        return resourceType;
    }

    public void setResourceType(Integer resourceType) {
        this.resourceType = resourceType;
    }

    public Integer getRelationClassId() {
        return relationClassId;
    }

    public void setRelationClassId(Integer relationClassId) {
        this.relationClassId = relationClassId;
    }

    public Integer getRelationTeacherId() {
        return relationTeacherId;
    }

    public void setRelationTeacherId(Integer relationTeacherId) {
        this.relationTeacherId = relationTeacherId;
    }

    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDraft() {
        return isDraft;
    }

    public void setIsDraft(Integer isDraft) {
        this.isDraft = isDraft;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "Resource{" +
        "id=" + id +
        ", name=" + name +
        ", resourceType=" + resourceType +
        ", relationClassId=" + relationClassId +
        ", relationTeacherId=" + relationTeacherId +
        ", resourceUrl=" + resourceUrl +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", isDraft=" + isDraft +
        ", isDeleted=" + isDeleted +
        "}";
    }
}
